{

VERSION 1.0, Ivan V. Minin 2008

http://code.google.com/p/matcalc

Copyright notice:
----------------

matrix algebra calculator sourcecode for Delphi
Copyright (C) Ivan V. Minin, 2008

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

}
unit Unit2;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls,Unit1, jpeg, ExtCtrls, XPMan;
type
  TForm2 = class(TForm)
    Label1: TLabel;
    Slozh: TButton;
    subst: TButton;
    mult: TButton;
    power: TButton;
    Image1: TImage;
    XPManifest1: TXPManifest;
    procedure powerClick(Sender: TObject);
    procedure multClick(Sender: TObject);
    procedure substClick(Sender: TObject);
    procedure SlozhClick(Sender: TObject);
    procedure Default;
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form2: TForm2;

implementation

{$R *.dfm}
procedure TForm2.Default;
begin
Form1.ARowCount.Text:='3';
Form1.AColCount.Text:='3';
Form1.BRowCount.Text:='3';
Form1.BColCount.Text:='3';
end;

procedure TForm2.multClick(Sender: TObject);
begin
Form1.Show;
Form1.Sum.Visible:=false;
Form1.Subtract.Visible:=False;
Form1.Multyply.Visible:=true;
Form1.power.Visible:=False;
Form1.power_koeff.Visible:=False;
Form1.stepen.Visible:=false;
unit1.act_type:='multiply';
form1.Caption:='��������� ����������� ������ ����� :: ���������';
Form1.MatrixBbox.Visible:=True;
default;
end;

procedure TForm2.powerClick(Sender: TObject);
begin
Unit1.Form1.Show;
Form1.Sum.Visible:=false;
Form1.Subtract.Visible:=False;
Form1.Multyply.Visible:=False;
Form1.power.Visible:=true;
Form1.power_koeff.Visible:=true;
Form1.stepen.Visible:=true;
unit1.act_type:='power';
form1.Caption:='��������� ����������� ������ ����� :: ���������� � �������';
Form1.MatrixBbox.Visible:=False;
Default;
end;

procedure TForm2.SlozhClick(Sender: TObject);
begin
Unit1.Form1.Show;
Form1.Sum.Visible:=True;
Form1.Subtract.Visible:=False;
Form1.Multyply.Visible:=False;
Form1.power.Visible:=False;
Form1.power_koeff.Visible:=False;
Form1.stepen.Visible:=false;
unit1.act_type:='add';
form1.Caption:='��������� ����������� ������ ����� :: ��������';
Form1.MatrixBbox.Visible:=True;
default;
end;

procedure TForm2.substClick(Sender: TObject);
begin
Unit1.Form1.Show;
Form1.Sum.Visible:=False;
Form1.Subtract.Visible:=True;
Form1.Multyply.Visible:=False;
Form1.power.Visible:=False;
Form1.power_koeff.Visible:=False;
Form1.stepen.Visible:=false;
unit1.act_type:='substract';
form1.Caption:='��������� ����������� ������ ����� :: ���������';
Form1.MatrixBbox.Visible:=True;
default;
end;

end.
